<template>
<div>

  <el-form :inline="true"  >
    <el-form-item label="Web 缺勤小时数阈值" >
      <el-input v-model="webscore"></el-input>
    </el-form-item>
    <el-form-item label="Java 缺勤小时数阈值">
      <el-input v-model="javascore"></el-input>
    </el-form-item>
    <el-form-item label="Test 缺勤小时数阈值">
      <el-input v-model="testscore"></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="save">保存</el-button>
    </el-form-item>
  </el-form>


</div>
</template>

<script>
export default {
  data() {
    return {

      javascore:undefined,
      testscore:undefined,
      webscore:undefined

    };
  },
  methods: {
    onSubmit() {
      console.log('submit!');
    },
    save(){
      this.$axios({
        url:'/saveAlertvalues',
        method:'get',
        params:{
          javascore:this.javascore,
          testscore:this.testscore,
          webscore:this.webscore
        }
      }).then(res=>{

        console.log(res)
        if(res.status==200){
          this.$message.success('保存成功')
        }else{
          this.$message.error('保存失败')
        }
      })
    }

  },
  created(){

  }
}
</script>
